package com.yanqu.road.server.logic.thread.grandchild;

import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.grandson.GrandChildModule;
import com.yanqu.road.utils.executor.GeneralTask;

public class ProfessionGrandChildListTask extends GeneralTask {
    private GamePlayer player;
    private int professionId;       //职业编号
    private int pageNum;            //请求页面数

    public ProfessionGrandChildListTask(GamePlayer player, int professionId, int pageNum) {
        super();
        this.player = player;
        this.professionId = professionId;
        this.pageNum = pageNum;
    }

    @Override
    public void doRun() {
        player.getModule(GrandChildModule.class).sendGrandChildListByProfession(professionId, pageNum);
    }
}
